package com.treasure.mall.biz.repository.statistics;

import com.treasure.mall.biz.base.JpaSearchableRepository;
import com.treasure.mall.biz.entity.statistics.DealAmountStatisticsPO;
import org.springframework.stereotype.Repository;

import java.time.LocalDate;
import java.util.List;

/**
 * @author allan
 * @version 1.0.0
 * @date 2020/9/25
 */
@Repository
public interface DealAmountStatisticsRepository extends JpaSearchableRepository<DealAmountStatisticsPO, Long> {
    List<DealAmountStatisticsPO> findByDateIsBetween(LocalDate begin, LocalDate end);

    boolean existsByDate(LocalDate date);
}
